﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace Batalha_Estelar
{
    class GameOver : GameObject
    {
        private BatalhaEstelar game = null;
        
        public GameOver(BatalhaEstelar game)
            : base(game)
        {
            this.game = game;
        }

        public override void Update(GameTime gameTime)
        {
            
        }

        public override void Draw(SpriteBatch spriteBatch)
        {
            var config = GameConfig.GetCurrent();

            Textura = game.Content.Load<Texture2D>(@"Imagens/game_over");
            Posicao = new Vector2((config.FieldWidth/2) - Textura.Width/2, (config.FieldHeight/2) - Textura.Height/2);

            spriteBatch.Draw(Textura, Posicao, Color.White);
        }

        protected override void Dispose(bool disposing)
        {
            //nada por enquanto...
            return;
        }
    }
}
